package com.itgt.classwork;

import java.util.Scanner;

public class Chapters3_3 {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入消费金额：");
		int eggs = scanner.nextInt();
		switch(eggs/10){
			case 5:
				System.out.println("赠鸡蛋  1  个");
					break;
			case 10:
				System.out.println("赠鸡蛋  2  个");
					break;
			case 20:
				System.out.println("赠鸡蛋  5  个");
					break;
			case 50:
				System.out.println("赠鸡蛋  15  个");
					break;
			case 100:
				System.out.println("赠鸡蛋  50  个");
					break;
			default:
				System.out.println("请努力消费！！！");
		}
	}
}
